2

1.vendor目录已经存在

如果已经执行了composer update/install,需要先删除vendor目录 执行:rm -rf vendor
git add -A
git commit -m "remove vendor"
composer update --prefer-dist
git add . -A 
git commit -m "recover vendor"

2.vendor目录不存在

composer update --prefer-dist
git add . -A 
git commit -m "recover vendor"

Notice: composer update --prefer-dist 优先从缓存取,不携带组件内的.git目录。


gaowei
103 声望9 粉丝

Challenge Limits